.chartLayout {
  display: flex;
  flex-direction: column;
  height: calc(100% - 32px);

  .chartContent {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 16px;

    .sideCardLeft {
      .card {
        height: 100%;
        width: 248px;
      }
    }

    .sideCardRight {
      .card {
        height: 100%;
        width: 300px;
      }
    }

    .middleCard {
      flex: 1;
      // width: calc(100% - (248px*2) - (16px*2));
    }
  }
}

.sheetName {
  border-bottom-width: 1px;
  border-bottom-style: solid;
  @include border_color('border_color');
  padding: 16px 0;
  font-family:
    Source Han Sans CN,
    Source Han Sans CN-Regular;
}

.dataSourceList {
  margin-top: 16px;
  height: 350px;
  overflow-y: auto;

  li {
    padding: 11px 8px;
    margin-bottom: 4px;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    &.active {
      @include background_color('split_color');
      color: var(--color-primary);
    }

    &:hover {
      @include background_color('split_color');
    }
  }
}

.themeFontColor {
  color: var(--color-primary);
}

.dragBox {
  // height: calc(100% - 130px);
  overflow-y: auto;

  .dragItem {
    padding: 11px 8px;
    margin-bottom: 4px;
    cursor: pointer;
    border-radius: 2px;

    &.dragActive {
      @include background_color('split_color');
      color: var(--color-primary);
    }

    &:hover {
      @include background_color('split_color');
    }
  }
}

.dragOverBox {
  border-width: 1px;
  border-style: solid;
  @include border_color('border_color');
  padding: 16px 24px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 74px;

  .dragOverArea {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;

    .dragItem {
      border-width: 1px;
      border-style: solid;
      @include border_color('border_color');
      border-radius: 3px;
      padding: 8px 16px;
      @include background_color('split_color');

      .closeItem {
        padding-left: 8px;
        border-left-width: 1px;
        border-left-style: solid;
        margin-left: 16px;
        @include border_color('border_color');
      }
    }
  }

  .conditionConfig {
    color: var(--color-primary);
    cursor: pointer;
  }
}

.sqlConfig {
  justify-content: space-between;
  align-items: center;
}

.chartTypeList {
  display: flex;
  gap: 8px;

  > ul {
    @include themeify {
      border: 1px solid themed('border_color');
      border-radius: 3px;
    }
  }

  .chartTypeName {
    width: 68px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 4px;

    > li {
      text-align: center;
      padding: 8px 0;
      cursor: pointer;

      &.active {
        @include background_color('split_color');
        color: var(--color-primary);
      }

      &:hover {
        @include background_color('split_color');
      }
    }
  }

  .chartChildrenSet {
    flex: 1;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 5px;

    > li {
      cursor: pointer;

      &.active {
        filter: drop-shadow(0px 0px var(--color-primary));

        > img {
          opacity: 0.5;
          // filter: opacity(50%);
        }
      }
    }
  }
}

.chartRadio {
  margin-bottom: 16px;

  &.t-radio-group.t-size-m .t-radio-button {
    padding: 12px 15px;
  }
}

.setting-color-drawer {
  border-radius: 50%;

  .t-radio-button {
    padding: 6px !important;
    // margin-right: 5px;
    border-radius: 50% !important;
    width: 40px;
    height: 40px !important;
    border-width: 2px;

    &:not(.t-is-checked) {
      border-color: transparent;
    }

    :deep(.t-radio-button__label) {
      height: 24px;

      .color-container {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: inline-block;
      }
    }
  }
}

.dynamic-color-btn {
  background: conic-gradient(
    from 90deg at 50% 50%,
    rgb(255, 0, 0) -19.41deg,
    rgb(255, 0, 0) 18.76deg,
    rgb(255, 138, 0) 59.32deg,
    rgb(255, 230, 0) 99.87deg,
    rgb(20, 255, 0) 141.65deg,
    rgb(0, 163, 255) 177.72deg,
    rgb(5, 0, 255) 220.23deg,
    rgb(173, 0, 255) 260.13deg,
    rgb(255, 0, 199) 300.69deg,
    rgb(255, 0, 0) 340.59deg,
    rgb(255, 0, 0) 378.76deg
  );
}

.drillDownConfig {
  color: var(--color-primary);
  cursor: pointer;
}
.customGroupList {
  width: 200px;
  border-right: 2px solid;
  @include border_color('border_color');
  display: flex;
  flex-direction: column;
  padding-right: 12px;
  gap: 12px;
  > li {
    .groupName {
      height: 32px;
      line-height: 32px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      cursor: pointer;
      position: relative;
      padding-left: 12px;
      &:hover {
        .delIcon {
          display: block;
        }
      }
      > .delIcon {
        position: absolute;
        right: 0;
        top: 0;
        display: none;
        color: var(--color-primary);
      }
      &.active {
        position: relative;
        &::before {
          content: '';
          position: absolute;
          left: 0;
          top: 6px;
          width: 5px;
          height: 20px;
          background-color: var(--color-primary);
          border-radius: 1px 4px 4px 1px;
          margin-right: 12px;
        }
      }
    }
  }
}
